﻿using ELearningSystem.Gateway.Entities;
using FluentNHibernate.Mapping;

namespace ELearningSystem.Gateway.Mappings
{
    public class PracticeMap:ClassMap<Practice>
    {
        public PracticeMap()
        {
            Id(x => x.Id);
            Map(x => x.Question);
            HasMany(x => x.Answers)
                .Not.LazyLoad()
                .Not.Inverse()
                .Cascade.All();
            
        }
    }
}
